import os


def create_directory(path):
    path = os.getcwd() + f"\\{path}"
    if not os.path.exists(path):
        os.makedirs(path)
        print(f"新建{path}文件夹")
    else:
        print(f"已有{path}文件夹")


def environment_initializing():
    create_directory('input')
    create_directory('output')
    model = input('请输入要加载的模型，None表示不加载，推荐使用large-v2\n')
    if model != 'None':
        from faster_whisper import WhisperModel
        WhisperModel(model)


environment_initializing()
